import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SGuildPlayer } from "./SGuildPlayer";
import { SPos } from "./SPos";
import { SGuildInfo } from "./SGuildInfo";
type int = number;
//class SGuildCallTogether
    
    export  class SGuildCallTogether extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildCallTogether();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.fromPlayer.__write(arg1);
            this.fromPos.__write(arg1);
            this.fromGuildInfo.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.fromPlayer = new SGuildPlayer();
            this.fromPlayer.__read(arg1);
            this.fromPos = new SPos();
            this.fromPos.__read(arg1);
            this.fromGuildInfo = new SGuildInfo();
            this.fromGuildInfo.__read(arg1);
            return;
        }

        public /* const */_type: int=12099;

        public /* var */fromPlayer: SGuildPlayer;

        public /* var */fromPos: SPos;

        public /* var */fromGuildInfo: SGuildInfo;

        public static /* var */_regist: SGuildCallTogether;
    }

            SGuildCallTogether._regist = new SGuildCallTogether(true);
        